﻿@model IEnumerable<IEstate.Core.Models.Approved>

@{
    ViewBag.Title = "Approve";
}

<link rel="stylesheet" type="text/css" href="~/Content/css/layout.css" />
<link rel="stylesheet" type="text/css" href="~/Content/css/ajaxui.css" />
<link rel="stylesheet" type="text/css" href="~/Content/Style.css" />
<div style="margin: 0px 0px 10px 0px; font-family: Cambria; font-size: 25px; font-weight: 300">Approve</div>

@if (ViewBag.number == 0)
{
    <div style="margin: 0px 0px 10px 0px; font-family: Cambria; font-size: 18px; font-weight: 300">There are no estates to be approved</div>
}
else
{
    <table class="bordered">
        <thead>
            <tr>
                <th>#</th>
                <th>Street</th>
                <th>Bedroms</th>
                <th>Size</th>
                <th>Price</th>
                <th>UID</th>
                <th>Approve</th>
            </tr>
        </thead>
        @foreach (var i in Model)
        {
            <tr>
                <td>@i.ApprovedID</td>
                <td>@i.Street</td>
                <td>@i.Bedrooms</td>
                <td>@i.Size</td>
                <td>@i.Price</td>
                <td>@i.UID</td>
                <td>@Html.ActionLink("Approve", "Accept", new { id = @i.ApprovedID })</td>
            </tr>
        }
    </table>
}

